package cn.gcBlock.dto;

import cn.gcBlock.annotation.Query;
import lombok.Data;

import java.util.List;

/**
 * @author jie
 * @date 2019-07-21
 */
@Data
public class NodeQueryCriteria {
    @Query(type = Query.Type.EQUAL)
    private String toPublicKey;
    @Query(type = Query.Type.EQUAL)
    private String publicKey;
    // 精确
    @Query
    private String signature;

    // 模糊
    @Query(type = Query.Type.EQUAL)
    private String blockName;

    // 精确
    @Query
    private Double coin;

    // 模糊
    @Query(type = Query.Type.EQUAL)
    private String dataBlock;

    // 精确
    @Query
    private String ip;

    // 精确
    @Query
    private String privateKey;


    @Query(type = Query.Type.EQUAL)
    private String remark;

    // 精确
    @Query
    private String symbol;

    // 精确
    @Query
    private Long timestamp;

    @Query
    private String type;

    @Query(propName = "type",type = Query.Type.IN)
    private List<String> types;
    // 精确
    @Query
    private Long createTime;
}